/* 单行省略 */
.single_line_omission {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.FB {
  filter: brightness(100%);
  transition: 0.1s;

  &:active {
    filter: brightness(80%);
  }
}

.loading_wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  font-size: 18px;
  font-weight: 100;
  letter-spacing: 2px;
  text-align: center;
}

/* toast居中 */
.toast-config {
  min-width: 200px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 45vh;
  height: auto !important;

  & > div {
    background-color: rgba(0, 0, 0, 0.7);
    display: inline-block;
    min-width: auto;
    font-size: 12px;
    border-radius: 8px;
  }
}


// 动画开始的时候 页面一定要定位住 不然页面组件的布局是上下布局 导致动画效果不显示
.main {
  position: fixed;
  top: 0;
  width: 100vw;
  min-height: 100vh;
  background: white;
}

.forward-enter {
  &:extend(.main);
  opacity: 0;
  transform: translateX(100%);
}

.forward-enter-active {
  &:extend(.main);
  opacity: 1;
  transform: translateX(0);
  transition: all 300ms ease-in;
}

.forward-exit {
  &:extend(.main);
  opacity: 1;
  transform: translateX(0);
}

.forward-exit-active {
  &:extend(.main);
  opacity: 0;
  transform: translateX(-100%);
  transition: all 300ms ease-in;
}

.back-enter {
  &:extend(.main);
  opacity: 0;
  transform: translateX(-100%);
}

.back-enter-active {
  &:extend(.main);
  opacity: 1;
  transform: translateX(0);
  transition: all 300ms ease-in;
}

.back-exit {
  &:extend(.main);
  opacity: 1;
  transform: translateX(0);
}

.back-exit-active {
  &:extend(.main);
  opacity: 0;
  transform: translate(100%);
  transition: all 300ms ease-in;
}


